<?php /* Smarty version 2.6.27, created on 2019-11-04 17:32:00
         compiled from common/server_list.tpl */ ?>
<select id="server_id">
    <?php $_from = $this->_tpl_vars['list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['item']):
?>
        <option value="<?php echo $this->_tpl_vars['item']['server_id']; ?>
" <?php if ($this->_tpl_vars['item']['server_id'] == $this->_tpl_vars['currentServer']): ?> selected<?php endif; ?>><?php echo $this->_tpl_vars['item']['server_id']; ?>
-<?php echo $this->_tpl_vars['item']['name']; ?>
(<?php echo $this->_tpl_vars['item']['channel']; ?>
)</option>
    <?php endforeach; endif; unset($_from); ?>
</select>
<script type="text/javascript">
    function getServerId() {
        var server = $('#server_id').children("option:selected").val();
        return server ? server : ''
    }
</script>